//
//  DateTableViewController.m
//  SimpleTableStoryboard
//
//  Created by Justsoso on 16/3/4.
//  Copyright © 2016年 NIIT. All rights reserved.
//

#import "DateTableViewController.h"

@interface DateTableViewController ()
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UILabel *dateLabel;

@end

@implementation DateTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSDate *d = [NSDate date];
    NSDateFormatter *f = [[NSDateFormatter alloc] init];
    [f setDateStyle:NSDateFormatterFullStyle];
    [f setTimeStyle:NSDateFormatterNoStyle];
    self.dateLabel.text = [f stringFromDate:d];
    [f setDateStyle:NSDateFormatterNoStyle];
    [f setTimeStyle:NSDateFormatterFullStyle];
    self.timeLabel.text = [f stringFromDate:d];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
